package com.example.demo.chap2;

public class Demo {

    String cname;
    int cid;
    public Demo() {
    }
    public Demo(String cname, int cid) {
        this.cname = cname ;
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid ;
    }


public void display(){
    System.out.println(cid +" "+ " "+ cname) ;
}


}
